package com.tourlaid.mamagerment.service

import com.tourlaid.mamagerment.entity.Supplier

/**
 * Created by xiaoyongge on 2017/7/21.
 */
interface SupplierService {

    fun queryForList(): List<Supplier>?

    fun insert(supplierName: String?, controlNo: String?)

    fun getByName(supplierName: String?): Supplier?

    fun getByControlNo(controlNo: String?): Supplier?

    fun getById(id: Long?): Supplier?

    fun update(id: Long?, supplierName: String?, controlNo: String?)

    fun queryByIdList(idList: List<Long?>): List<Supplier>

    fun  delete(id: Long?)

    fun  queryAllSupplier(): List<Supplier>

}